//
//  TaskWithGetAttentions.m
//  DuBai
//
//  Created by lt on 14-4-3.
//  Copyright (c) 2014年 darktm. All rights reserved.
//

#import "TaskWithGetAttentions.h"

#import "favourite.h"

@implementation TaskWithGetAttentions

-(void)prepare{
    
    NSString *url = [Configure getAttentions];
    if(self.createtime){
        url = [NSString stringWithFormat:@"%@?createtime=%@",url,self.createtime];
    }
    
    [self startAsyncWithParams:nil withMethod:@"GET" withURL:url];
}

-(id)parese{
    
    NSMutableArray *ret = [NSMutableArray array];
    
    for (NSDictionary *dic in self.rcvData) {
        favourite *c = [[favourite alloc] initWithReflectData:dic];
        [ret addObject:c];
    }
    
    return ret;
}


@end
